package Model;

/*
 * Person model class, holds the information about person objects.
 */

public class Person
{
    private int id;
    private String name;
    private String address;
    private String postalCode;
    private String city;
    private String phone;
    
    // Single constructor for creation objects, with all paramenters required.
    public Person(int id, String name,String address,String postalCode,String city,String phone)
    {
        this.id = id;
        this.name = name;
        this.address = address;
        this.postalCode = postalCode;
        this.city = city;
        this.phone = phone;
        
    }

    // getters and setters
	public int getId() {
		return id;
	}

	// 'id' field was not ment to be changed ever, so we have skipped setId() 
	//public void setId(int id) {
	//	this.id = id;
	//}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPostalCode() {
		return postalCode;
	}

	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
    
	// toString(), method wasn't used due to unclear definition and start of coding too early.
}
